package com.kws.system.controller.customerService;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.common.core.domain.R;
import com.kws.system.domain.info.QueryChatRecordsInfo;
import com.kws.system.domain.vo.QueryChatRecordsRq;
import com.kws.system.service.ChatRecordsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>ChatRecordsController</b>
 *
 * @description: ChatRecordsController <br>
 * @date: 2024/12/6 16:51 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Api(tags = "聊天记录管理模块")
@RestController
public class ChatRecordsController {
    private static final Logger logger = LoggerFactory.getLogger(ChatRecordsController.class);

    @Autowired
    private ChatRecordsService chatRecordsService;

    @ApiOperation("分页查询俩天记录列表")
    @PostMapping("/query/chatRecords/page")
    public R<Page<QueryChatRecordsInfo>> queryChatRecordsPage(@RequestBody QueryChatRecordsRq rq){
        Page<QueryChatRecordsInfo> pageInfo = chatRecordsService.queryChatRecordsPage(rq);
        return R.ok(pageInfo);
    }

}
